Simulink Object

The Simulink Object mapping flavor is used to specify Simulink signal attributes that are part of the interface to TPT.

The Simulink Object mapping flavor can define the LSB which can be used as tolerance in comparisons, see also Mapping Flavor - Scaling.

The following attributes are available:

SL_Slope / SL_Bias

The slope and bias calculation follows the formula:

SL_Signed

In case of fixed-point data types this attribute specifies the signedness of the scaled value in Simulink.

SL_Length

In case of fixed-point data types this attribute specifies the total number of bits for the scaled value in Simulink.

SL_FIXDT_ROUNDING_MODE

In case of fixed-point data types this attribute specifies the rounding mode that is used when values are exchanged between the TPT S-function and the SUT in Simulink.

This is only applied when the option Natively use bus/enumeration/fixed-point data types specified by the SUT is enabled, see MATLAB/Simulink Platform - Import Interface.

SL_FIXDT_OVERFLOW_MODE

In case of fixed-point data types this attribute specifies the overflow mode that is used when values are exchanged between the TPT S-function and the SUT in Simulink.

This is only applied when the option Natively use bus/enumeration/fixed-point data types specified by the SUT is enabled, see MATLAB/Simulink Platform - Import Interface.

SL_Min

The minimum value specified in Simulink.

SL_Max

The maximum value specified in Simulink.

SL_Data_Type

The name of data type in Simulink. If the option Natively use bus/enumeration/fixed-point data types specified by the SUT is enabled, see MATLAB/Simulink Platform - Import Interface, and the SL_Data_Type_Kind is ENUM or BUS, this data type is directly used by the TPT S-function. In this case, the definition in Simulink must match with the data type in TPT. If the SL_Data_Type_Kind is BUS and this attribute is not set, TPT will automatically generate a suitable Simulink.Bus object that will be used then.

SL_Data_Type_Kind:

The kind of data type in Simulink. This may be BUILT-IN, ENUM, FIXED-POINT, BUS or FCN_CALL.

SL_Non_Virtual_Bus

In case of bus signals this attribute specifies if the signal is a non-virtual bus.

SL_Data_Type_Mode

In case of Simulink.Numeric data types this is the data type mode specified for the type.

SL_Class_Name

The class name for the Simulink signal or parameter object if used.

SL_Custom_Storage_Class

The storage class defined by the Simulink signal or parameter object if used.

SL_Calibration_Numerator

In case of Simulink.DualScaledParameter objects this is the calibration numerator.

SL_Calibration_Denumerator

In case of Simulink.DualScaledParameter objects this is the calibration denumerator.

The attributes SL_Min, SL_Max, SL_Data_Type_Mode, SL_Class_Name, SL_Custom_Storage_Class, SL_Calibration_Numerator, SL_Calibration_Denumerator provided by this mapping flavor are for informational purposes only. They are not used for any calculations.